<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>JSON</title>
</head>
<body>
    <script>
    var json = {
        "name":"Carl",
        "age":"34",
        "sex":"male"
    };


    for (var key in json) {
        console.log(key + ":" + json[key]);
    }
    
    </script>
</body>
</html>